package com.omega.entity;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.TableGenerator;

@Entity
@Table(name = "RMS_MEASURING_UNIT")

public class MeasuringUnit extends AbstractEntity implements Serializable {

	private static final long serialVersionUID = 1L;
	
	@Id
	@Column(name="MEASURING_UNIT_ID")
	@TableGenerator(table = "PORTAL_TABLE_GENERATOR", name = "TABLE_SEQ_GENERATOR", pkColumnValue = "RETAILER_ID",allocationSize = 1, initialValue = 1)
	@GeneratedValue(strategy = GenerationType.TABLE, generator = "TABLE_SEQ_GENERATOR")
	private long measuringUnitId;
	
	@Column(name="MEASURING_UNIT_VALUE")
	private String measuringUnitValue;

	public String getMeasuringUnitValue() {
		return measuringUnitValue;
	}

	public void setMeasuringUnitValue(String measuringUnitValue) {
		this.measuringUnitValue = measuringUnitValue;
	}

	/**
	 * @return the measuringUnitId
	 */
	public long getMeasuringUnitId() {
		return measuringUnitId;
	}

	/**
	 * @param measuringUnitId the measuringUnitId to set
	 */
	public void setMeasuringUnitId(long measuringUnitId) {
		this.measuringUnitId = measuringUnitId;
	}
	
	
	
}
